import request from "./twoTokenRefresh.js";
import getCookie from "./cookie.js";
export async function getRefreshToken() {
  return await request("/user/getRefreshToken", {
    headers: {
      Authorization: getCookie.get("refreshToken") || "fsdfsdfsfsggfsdhjghjhgj",
    },
    is_getRefreshToken: true, //已经长token校验过的标记
  });
}

//是否已经验证过长token
export function isGetRefreshToken(config) {
  return !!config.is_getRefreshToken;
}
